package com.ideal.manage.esms;

import com.alibaba.fastjson.JSONObject;
import com.ideal.manage.esms.repository.framework.FrameworkJpaRepositoryFactoryBean;
import com.ideal.manage.esms.service.ElasticsearchService;
import com.ideal.manage.esms.service.IntegrationService;
import org.elasticsearch.common.collect.Tuple;
import org.elasticsearch.index.query.QueryBuilders;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ApplicationContext;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.Date;
import java.util.List;
import java.util.Map;

@EnableJpaRepositories(basePackages = {"com.ideal.manage.esms.repository"},
        repositoryFactoryBeanClass = FrameworkJpaRepositoryFactoryBean.class)
@SpringBootApplication
@EnableCaching
@EnableScheduling
public class EsmsApplication {

    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(EsmsApplication.class, args);
    }
}

